package com.wuwei.elearning.question.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.wuwei.elearning.question.domain.TestResult;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 考试结果存储的表 Mapper 接口
 * </p>
 *
 * @author wuwei
 * @since 2024-01-18
 */
public interface TestResultMapper extends BaseMapper<TestResult> {



    /**
     * 找出test_result表中所有questionItemIds在questipnItemId内和满足account的score
     * @param questionItemIds
     * @param account
     * @return
     */
    Integer myAllScores(@Param("questionItemIds") List<Long> questionItemIds, @Param("account") Long account);
}
